/*怎么拿到div*/
/*
div  元素选择器  标签选择器
.two 类选择器
two 自定义元素
.aa >div 子代选择器
.aa div  后代选择器
.aa:hover 伪元素选择器
.aa + div 兄弟选择器
*/
/* .aa>div>div:first-child{*/
/*    !*    background-color: rebeccapurple*!*/
/*    !*;*!*/
/*    background-image: url("../img/banner_qtah.jpg");*/
/*    width: 1000px;*/
/*    height: calc(1000px * 808 / 1920);*/
/*    background-size: 100% 100%;*/
/*    !*color:red;*!*/
/*    !*color:#00ff00;*!*/
/*    !*color:rgb(0,0,255);*!*/
/*    margin-top: 10px;*/
/*    padding-top: 50px;*/
/*    border: 20px black solid;*/
/*    !*margin:0 auto ;*!*/
/*}*/
/*.aa{*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/
* {
    margin: 0;
}

.title {
    color: rgb(230, 145, 55);
    font-size: 30px;
    padding: 10px;
}

body {
    display: flex;
    justify-content: center;
}

.home {
    width: 1000px;
    /*border: 1px solid red;*/

}

.top {

    background-image: url("../img/banner_qtah.jpg");
    height: calc(1000px * 808 / 1920 + 100px);
    background-size: 100% 100%;
    color: white;
}

/*将头部所有的居中，然后里面的div定义宽度*/
.top > div {
    display: flex;
    justify-content: center;
}

.top > div > div {
    width: 900px;
}

.top > div:nth-child(1) {
    display: flex;
    justify-content: center;
}

.top > div:nth-child(1) > div:nth-child(1) {
    /*width: 900px;*/
    /*border: 1px solid blue;*/
    display: flex;
    justify-content: space-between;
}

.top > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) {
    display: flex;
    align-items: center;

}

/*---------------------------------------华丽的分隔符 公司信息-------------------*/
.top > div:nth-child(2) {
    /*display: flex;*/
    /*justify-content: center;*/
    background-color: rgb(230, 145, 55);
    height: 50px;
}

.top > div:nth-child(2) > div {
    /*width: 900px;*/
    /*border: 1px solid blue;*/
}

.top > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) {
    height: 141px;
}

/*------------导航信息-----------------*/
/*命名规则：英文，小写 , 破折线 不要出现特殊字符和数字和拼音*/
.nav > div {
    display: flex;
    align-items: center;
}

.nav > div > div {
    /*margin: 0 20px;*/
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
}

.nav > div > div:hover {
    background-color: white;
    color: rgb(230, 145, 55);
    cursor: pointer;
}

/*----------------广告信息----------------------------*/
/*.ad{*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/
.ad > div {
    /*width: 900px;*/
    /*border: 1px solid red;*/
}

.ad > div > div:nth-child(1) {
    padding: 30px 0 10px;
    font-size: 30px;
}

.ad > div > div:nth-child(2) > div {
    font-size: 10px;
    line-height: 20px;
}

.ad > div > div:nth-child(3) {
    color: rgb(230, 145, 55);
    font-size: 30px;
}

.ad > div > div:nth-child(3) > div:nth-child(1) {
    display: flex;
    align-items: flex-end;
}

.ad > div > div:nth-child(3) > div:nth-child(1) > div:nth-child(2) {
    margin-right: 20px;
}

/*，分组选择器*/
/*.ad > div > div:nth-child(3)>div:nth-child(1)>div:nth-child(1),.ad > div > div:nth-child(3)>div:nth-child(1)>div:nth-child(3){*/
/*    color: white;*/
/*    font-size: 15px;*/
/*}*/
/*odd奇数 even偶数*/
.ad > div > div:nth-child(3) > div:nth-child(1) > div:nth-child(odd) {
    color: white;
    font-size: 15px;
}

.ad > div > div:nth-child(3) > div:nth-child(2) {
    text-indent: 1.5em;
}
